package com.stylefeng.guns.modular.netcar.service;

import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.model.CommonKeyValue;
import com.stylefeng.guns.core.model.Pager;
import com.stylefeng.guns.modular.netcar.model.LineDispatchPsn;

import java.util.List;
import java.util.Map;
/**
  * 线路指派调度员 Service接口
  * @author 张亚林
  * @Date 2018-10-27 09:52 
 */
public interface ILineDispatchPsnService extends IService<LineDispatchPsn> {

    /**
     * 删除线路指派调度员
     * @param lineDispatchPsn
     * @return     
     */
    int deleteLineDispatchPsn(LineDispatchPsn lineDispatchPsn,String token)throws Exception;
    /**
     * 批量删除线路指派调度员
     * @param ids 主键ID数组
     * @return     
     */
    int deleteBatchLineDispatchPsn(String[] ids,String token)throws Exception;
    /**
     * 查询线路指派调度员列表
     * @param lineDispatchPsn 线路指派调度员对象
     * @return     
     */
    List<LineDispatchPsn> selectListLineDispatchPsn(LineDispatchPsn lineDispatchPsn,String token)throws Exception;

	/**
     * 分页查询线路指派调度员列表
     * @param pager 分页对象
     * @return     
     */
    Map pageListLineDispatchPsn(Pager pager,String token) throws Exception;

    /**
     * 同一个事务 互斥锁查询
     * @param lineDispatchPsn 线路指派调度员对象
     * @return     
     */
    List<LineDispatchPsn> selectListLineDispatchPsnForUpdate(LineDispatchPsn lineDispatchPsn)throws Exception;
    /**
     * 通过主键id查询的线路指派调度员列表
     * @param id 主键id
     * @return     
     */
    LineDispatchPsn findLineDispatchPsnById(String id,String token)throws Exception;

    /**
     * 新增线路指派调度员数据
     * @param lineDispatchPsn  线路指派调度员对象
     * @return
     */
    int insertLineDispatchPsn(LineDispatchPsn lineDispatchPsn,String token) throws Exception ;
    /**
     * 更新线路指派调度员数据
     * @param lineDispatchPsn 线路指派调度员对象
     * @return     
     */
    int updateLineDispatchPsn(LineDispatchPsn lineDispatchPsn,String token) throws Exception ;    

    /**
     * 查询线路指派调度员返回key-Value属性
     * @param lineDispatchPsn 系统操作对象
     * @return     
     */
    List<CommonKeyValue> optionsLineDispatchPsn(LineDispatchPsn lineDispatchPsn,String token)throws Exception;
}
